<template>
	<view class="padding30rpx">
		<view class="dis news">
			<view 
			style="padding: 10rpx 35rpx;"
			:class="{news_tab:ico == index}" 
			v-for="(item,index) in newsList"
			 @click="tab(index)"
			:key="index">{{item}}</view>
		</view>
		<view>
			<view v-for="(item,index) in list" :key="index">
<!-- 				<view class="dis margin-top25rpx line" style="padding-bottom: 15rpx;">
					<view style="width: 70%;">
						<view style="font-weight: bold;">学习通知</view>
						<view class="hui66 margin-top25rpx">xxxxx课程学习时间到啦！</view>
					</view>
					<view style="text-align: center; width: 25%;">
						<view style="font-size: 20rpx; color: #999999;">2020-20-20</view>
						<view class="xiang margin-top25rpx">查看详情</view>
					</view>
				</view> -->
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				newsList:['系统通知','学习通知'],
				ico:0,
				list:[{},{}]
			}
		},
		methods: {
			tab(i){
				this.ico = i
			}
		}
	}
</script>

<style lang="scss" scoped>
	.xiang{
		color: #00A29A;
	}
	.news{
		width: 80%;
		margin: 0 auto;
	}
	.news_tab{
		background: #00A29A;
		color: #FFFFFF;
		padding: 10rpx 35rpx;
		border-radius: 10rpx;
	}
</style>
